<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet"/>
</head>

<body>
<div id="append">
</div>
<div class="container">
	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	<div class="mainbox nomargin">
		<form {if isset($curnav)}action="index.php?c=admin_nav&a=edit"{else}action="index.php?c=admin_nav&a=add"{/if} method="post">
			<table class="opt">
				<tr>
					<th colspan="2">名称:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="name" style="width:300px;" {if isset($curnav['name'])}value="{$curnav['name']}"{/if} ></td>
					<td valign="top">导航链接名称</td>
				</tr>
				<tr>
					<th colspan="2">说明:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="title" style="width:300px;" {if isset($curnav['title'])}value="{$curnav['title']}" {/if}></td>
					<td valign="top">导航描述</td>
				</tr>
				<tr>
					<th colspan="2">链接打开方式:</th>
				</tr>
				<tr>
					<td><input type="radio"  value="0"  class="radio" name="target" {if (!isset($curnav['target']) || !$curnav['target'])}checked{/if} />在本窗口打开 &nbsp;&nbsp;<input type="radio" class="radio" name="target" value="1" {if isset($curnav['target']) && $curnav['target']}checked{/if}/>在新窗口打开</td>
					<td valign="top"></td>
				</tr>
				<tr>
					<th colspan="2">URL地址:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="url" style="width:300px;" {if isset($curnav['url'])}value="{$curnav['url']}" {/if} /></td>
					<td valign="top"></td>
				</tr>

			</table>
			<div class="opt">
				{if isset($curnav)}
				<input type="hidden" name="nid" value="$curnav['id']"/>
				{/if}
				<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
		</form>
	</div>
</div>

</body>

</html>
